package rpc.exceprion;

import rpc.enums.RpcErrorMessageEnum;

/**
 * @ClassName: RpcException
 * @Description: Rpc的定制异常类
 * @author: Kowk
 * @since:1.0.0
 */
public class RpcException extends RuntimeException{
    public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum,String detail){
        super(rpcErrorMessageEnum.getMessage()+detail);
    }
    public RpcException(String message,Throwable cause){
        super(message, cause);
    }
    public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum){
        super(rpcErrorMessageEnum.getMessage());
    }
}
